<!--This is the template, it is awe-inspiring in it's simplicity, but that is
             just because most of the stuff has been swept under the carpet, enjoy! -->

<!--Import global variables-->

<?php include("globalVar.php");

//Doctype and html
   print(
         "$DOCTYPE
         $HTMLOPEN"); ?>

<head>

<!--Print out the head of the page-->
<?php
   echo("<title>$COMPANY_NAME</title>
         $CHARSET
         $CSS
    	 $ICON "); ?>

</head>
<body>


<div id="title">
<?php
   echo("$LOGO
         $BANNER");
?>
</div>


<div class="errorMessage">
<?php 
$error = $_GET['error'];

echo('
   <div id="BodyMain">
      <br/>
      <br/>
      <br/>
      <div class="center">
');               
         
switch($error){
   
      case "400":
      echo('
         <p class="XLbodycopy">Error 400: Bad Request.</p>
         <p class="bodycopy">Learn to type Jack@$$.</p>
      ');
      break;
   
      case "401":
      echo('
         <p class="XLbodycopy">Error 401: Not Authorized</p>
         <p class="bodycopy">
		 You are not authorized to view this page. It most likely contains porn.
         </p>
      ');
      break;
   
      case "402":
      echo('
         <p class="XLbodycopy">Error 402: Payment Required</p>
         <p class="bodycopy">
         (Student slave labor aint cheap!)
         </p>
      ');
      break;
   
      case "403":
      echo('
         <img src="http://www.usalinux.org/ind.jpg" alt="ACCESS DENIED"/>
         <!-- This images was taken from www.usalinux.org -->
         <p class="largebodycopy">
         You do not have access to this page. 
         </p>
      ');
      break;
   
      case "404":
      echo('
         <p class="XLbodycopy">Error 404: Page not found.</p>
         <p class="bodycopy">
         The Page you requested was not found. 
         </p>
      ');
      break;
   
      case "405":
      echo('
         <p class="XLbodycopy">Error 405: Method not Allowed</p>
         <p class="bodycopy">
         What are you trying to pull anyway?
         </p>
      ');
      break;
   
      case "406":
      echo('
         <p class="XLbodycopy">Error 406: Not Acceptable</p>
         <p class="bodycopy">
         Your behaviour is unacceptable! Go directly to jail! Do not pass GO, do not collect 200$.
         </p>
      ');
      break;
   
      case "500":
      echo('
         <p class="XLbodycopy">Error 500: Internal Server Error</p>
         <p class="bodycopy">
         You did not get this error. Our servers did not screw up. Our website is perfect. These are not the droids your looking for.
         </p>
      ');
      break;
   
      case "501":
      echo('
         <p class="XLbodycopy">Error 501: Not Implemented</p>
         <p class="bodycopy">
         Our magic elves will be working on the implementation as soon as they finish baking us cookies.
         </p>
      ');
      break;
   
      case "502":
      echo('
         <p class="XLbodycopy">Error 502: Bad Gateway</p>
         <p class="bodycopy">
         Really big, nasty gateway with two heads and five arms.
         </p>
      ');
      break;
   
      case "503":
      echo('
         <p class="XLbodycopy">Error 503: Service Unavailable</p>
         <p class="bodycopy">
         This service is currently unavailable. 
         </p>
      ');
      break;
   
      case "504":
      echo('
         <p class="XLbodycopy">Error 504: Gateway Timeout</p>
         <p class="bodycopy">
         Our gateway was misbehaving and has to take a timeout. Sorry for the inconvenience.
         </p>
      ');
      break;
   
      case "505":
      echo('
         <p class="XLbodycopy">Error 505: HTTP Version not Supported</p>
         <p class="bodycopy">
         Please go download <a href="http://www.firefox.com/" onclick="window.open(this.href,\'_blank\');return false;">Firefox</a> and come back.
         </p>
      ');
      break;
   
}

echo('<p>Please redirect to the main <a href="index.php">jppeach site</a>.</p>');

?>
</div>

</body>
</html>

